﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using XiaoMan.Model.Models;
using XiaoMan.BLL;
using XiaoMan.Common;

namespace XiaoMan.API.Controllers
{
    public class HomeController : Controller
    {
        private UserServices us = new UserServices();
        public ActionResult Index()
        {
            ViewBag.Title = "Home Page";
            Sys_Users user = new Sys_Users
            {
                UserName = "admin",
                PassWord = Encrypt.EncryptString("666666"),
                Sex = false,
                Birthday = DateTime.Now,
                Mobile = "17621153040",
                Province = 131321,
                City = 232423,
                UserPic = "dsdasd",
                IsDelFlag = false,
                CreatTime = DateTime.Now
            };
            us.Add(user);
            List<Sys_Users> users1 = us.GetListById(1);
            List<Sys_Users> users2=us.GetList();
            return View();
        }
    }
}
